import 'package:flutter/material.dart';
import 'package:flutter_eve_plugin/utils/image_util.dart';
import 'package:flutter_eve_plugin/utils/screen_util.dart';

class CheckpointDialogCloseWidget extends StatelessWidget {
  const CheckpointDialogCloseWidget({
    Key key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.end,
      crossAxisAlignment: CrossAxisAlignment.start,
      children: <Widget>[
        GestureDetector(
          onTap: () {
            if (Navigator.canPop(context)) {
              Navigator.pop(context);
            }
          },
          child: Image.asset(
            imageUtilYeXiu('checkpoint/icon_right_close@3x'),
            width: setRatio(63),
            height: setRatio(28),
          ),
        )
      ],
    );
  }
}
